﻿using CheryABP.Interceptor;
using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace CheryABP.Middleware
{
    /// <summary>
    /// 中间件拦截接口
    /// </summary>
    public static class InterceptHandler
    {
        /// <summary>
        /// 中间件拦截接口
        /// </summary>
        /// <param name="app"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseInterceptMiddleware(this IApplicationBuilder app)
        {
            
            return app.UseMiddleware<InterceptMiddlware>();
        }
    }
}
